package com.ayf.payment.game.api.service.impl;

import com.ayf.payment.game.api.entity.MerchantAliBatchPayFileFailReason;
import com.ayf.payment.game.api.mapper.MerchantAliBatchPayFileFailReasonMapper;
import com.ayf.payment.game.api.service.MerchantAliBatchPayFileFailReasonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MerchantAliBatchPayFileFailReasonServiceImpl implements MerchantAliBatchPayFileFailReasonService{

    @Resource
    private MerchantAliBatchPayFileFailReasonMapper merchantAliBatchPayFileFailReasonMapper;

    @Override
    public List<MerchantAliBatchPayFileFailReason> list(String fileId) {
        MerchantAliBatchPayFileFailReason failReason = new MerchantAliBatchPayFileFailReason();
        failReason.setBatchPayFileId(fileId);
        return merchantAliBatchPayFileFailReasonMapper.select(failReason);
    }
}
